@extends('layout') @section('title', __('admin_child.title')) @php $child = request()->route('child'); $thumb = empty(old('thumbnail'))?'' : old('thumbnail'); $thumb = empty($thumb) && !empty($child)?$child->thumbnail:$thumb; $father = null; $mother = null; $parents = $child->parents; foreach ($parents as $parent) { if ($parent->relationship == 'F') { $father = $parent; } else { $mother = $parent; } } @endphp @section('content_header') @component('common.alert', ['type'=>session('flash')['type']]) {{session('flash')['message']}} @endcomponent @stop @section('content')
@else
C{{ $child->id }}
@else
E{{ $educator->id }}